/** @file */ 

#ifndef UTILITIES_H_
#define UTILITIES_H_

#include <pololu/3pi.h>
#include "RRT.h"

/**
 * Initialise Utilities (LED)
 */
void init_utilities();
 
/** 
  * Prints a string representation of the error variable errno
  */
void print_error();

/**
 * Displays the text on the LCD display. The text must not contain more then 16 characters, since the LCD display cant display more.
 * This function blocks for 1 second.
 *
 * \param text The text to be displayed in the first line of the LCD display (max. 8 characters)
 */
void print_text(char* text);

/**
 * Displays the given long value on the LCD display. This function blocks for 1 second.
 *
 * \param value The number to be displayed in the first line of the LCD display
 */
void print_number(uint16_t value);

/**
 * Turns on the green led
 */
void turn_led_on();

/**
 * Turns off the green led
 */
void turn_led_off();

/**
 * Turns off the green led
 */
void toggle_led();


#endif /* UTILITIES_H_ */